@import "basic";

ul li {
  list-style: none;
}
$navWidth: 200px;
body {
  @include prefix-val(display, flex);
  flex-direction: column;
  -webkit-flex-direction: column;
  height: 100vh;
  & > .header {
    height: 80px;
    padding: 10px;
    font-size: 28px;
    text-align: center;
    color: #fff;
    .btn-group {
      margin-top: 15px;
    }
  }
  .main-container {
    @include prefix-val(display, flex);
    @include prefix-key(flex, 1);
    position: relative;
    .main-nav {
      width: $navWidth;
      background-color: #e1e9ee;
      overflow: auto;
    }
    .main-content {
      @include prefix-key(flex, 1);
      overflow: auto;
    }
  }
  .right-content {
    width: 100%;
    padding: 20px;
  }
  .navBac {
    width: 100%;
    height: 39px;
    background: #e1e9ee;
    border-radius: 4px;
    line-height: 39px;
    padding-left: 20px;
  }
}

.main-nav {
  .panel {
    @include prefix-key(border-radius, 0);
    border-width: 0 0 1px;
    border: none;
    .list-group-item {
      border: none;
      background-color: #e1e9ee;
      padding-left: 65px !important;
      font-size: 14px;
      cursor: pointer;
    }
    .list-group {
      border-top: 0 !important;
      .activeCol {
        color: #1164c0;
      }
    }
  }
  .panel-group {
    margin-bottom: 0;
  }
  .panel-heading {
    @include prefix-key(border-radius, 0);
    @include prefix-key(transition, .3s);
    border: 1px solid transparent;
    cursor: pointer;
    background: #e1e9ee;
    &:hover, &.active {
      border-left: 5px solid #337ab7;
      background: #929fab;
      color: #fff;
    }
  }
  .panel > .panel-collapse > .list-group .list-group-item {
    padding-left: 30px;
    cursor: pointer;
    border-width: 1px;
    @include prefix-key(transition, .3s);
    &:hover, &.click {
      border-left: 3px solid #337ab7;
    }
  }
  .glyphicon {
    margin-right: 10px;
  }
}

.add-page {
  padding: 30px;
  .panel-heading {
    font-size: 16px;
    .panel-title {
      line-height: 22px;
    }
  }
  .pagination {
    margin: 0;
  }
}

#file_modal {
  .panel-body {
    height: 600px;
    overflow: auto;
  }
  .panel-title {
    line-height: 22px;
  }
  .choose-file-input {
    display: none;
    width: 0;
    height: 0;
  }
}

.cursor {
  cursor: pointer;
}

.none {
  display: none;
}

.input-money {
  text-indent: 10px;
  border-radius: 5px;
  outline: none;
  border: 1px solid #ddd;
}

.panel-group .panel + .panel {
  margin-top: 0
}

.mg-15 {
  margin: 15px;
}

.mgr-10 {
  margin-right: 10px;
}

.personbox {
  padding: 20px 60px 40px 10px;
}

.mar-t {
  margin-top: 20px;
}

.pd-30 {
  padding: 30px;
}

.pdr-30 {
  padding-right: 30px;
}

.textCenter {
  text-align: center !important;
}

.pad-15 {
  padding: 15px 0;
}

.table.table-center {
  tbody {
    th, td {
      text-align: center;
      vertical-align: middle;
    }
  }
}

.table {
  //天哪，这个属性，我竟然才发现！！！控制单元格不会被内容撑开！！！
  table-layout: fixed;
  tbody {
    th, td {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  tr th {
    background-color: #e1e9ee;
    color: #000;
  }

}

label, input[type=checkbox] {
  margin: 0;
}

.right-content .control {
  padding: 15px 0;
}

.none {
  display: none;
}

.red {
  color: red;
  font-size: 16px;
  vertical-align: middle;
}

.textareaResize {
  resize: vertical;
}

.w70 {
  width: 70px;
}

.pagination > .active > a {
  background-color: #1164c0;
}

.btn-primary {
  background: #1164c0;
}

//td超长省略
.td-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.myModal-lg {
  width: 75%;
}

.modal-header-pub {
  background-color: #1164c0;
  color: #fff;
}

//validate验证错误样式
.error {
  color: red;
}

.label.error {
  position: absolute;
  top: 8px;
  right: 40px;
  color: red;
}

.label-danger {
  background: #fff;
}

.form-control.error {
  border-color: #a94442;
  &:focus {
    @include prefix-key(box-shadow, 0 0 8px rgba(169, 68, 66, .6));
  }
}

//加载动画
.loader {
  @include prefix-val(display, flex);
  justify-content:center;
  align-items:center;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: $navWidth;
  z-index: 9999;
  .line-scale-pulse-out-rapid div {
    background-color: #337ab7;
  }
  &.none {
    display: none;
  }
  .pacman div {
    &:first-of-type, &:nth-child(2) {
      border-top: 25px solid #337ab7;
      border-left: 25px solid #337ab7;
      border-bottom: 25px solid #337ab7;
    }
    &:nth-child(3), &:nth-child(4), &:nth-child(5) {
      background-color: #337ab7;
    }
  }
}

.table tr td {
  text-align: center;
  vertical-align: middle !important;
}

.textareaResize {
  resize: vertical;
}

.page-margin {
  margin: 26px 0.26vw;
  color: #999999;
}

.input-date {
  background: url("../../styles/images/date.png") no-repeat right center;
}

.checkAll {
  cursor: pointer;
}

//文件树样式
.jstree-anchor {
  width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

//消息提示
.layui-layer-title {
  background-color: #d9534f !important;
}

.layui-layer-content {
  vertical-align: middle;
  padding: 20px;
  overflow: auto;
  .layer-cont {
    display: inline-block;
    padding: 0;
    margin: 0;
    width: 100%;
    color: #a94442;
    line-height: 30px;
    vertical-align: middle;
    list-style: none;
  }
}


.topNav {
  width: 100%;
  padding: 20px;
}
.topNav .navBac {
  width: 100%;
  height: 39px;
  background: #e1e9ee;
  border-radius: 4px;
  line-height: 39px;
  padding-left: 20px;
}
.pageCont {
  float: right;
  margin: 26px 0.26vw;
  color: #999999;
}
.mar20{
  margin: 0 20px;
}